<script>
import { http } from '@/lib/js/request';
export default {
	onLaunch: function() {
		uni.setStorageSync('parent_uid', this.$route.query.uid || '');
		this.getConfig();
	},
	onShow: function() {
		console.log('App Show');
	},
	onHide: function() {
		console.log('App Hide');
	},
	methods: {
		async getConfig() {
			const res = await http('/config');
			uni.setStorageSync('config', res.data);
		}
	}
};
</script>

<style lang="scss">
@import 'uview-ui/index.scss';
/*每个页面公共css */
@import '@/lib/css/base.scss';
</style>
